#include <stdio.h>
struct linknode
{
	int data;
	struct linknode *next;
};

void teat()
{
	struct linknode node1={10,NULL};
	struct linknode node2={20,NULL};
	struct linknode node3={30,NULL};
	struct linknode node4={40,NULL};
	struct linknode node5={50,NULL};
	node1.next=&node2;
	node2.next=&node3;
	node3.next=&node4;
	node4.next=&node5;
	
	struct linknode *p=&node1;
	while(p!=NULL)
	{
		printf("%d ",p->data);
		p=p->next;
	}
}
int main(int argc, char *argv[]) 
{
	teat();
	return 0;
}